<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>

    // debugger;

    // console.log(a);

    // var x = 10;
    // var x = 20;

    // let a = 10;
    // a = 100;

    // const b = 20;
    // b = 200


    // debugger;
    // {
    //     var x = 10;
    //     let y = 20;
    //     const z = 30
    // }


    // let fn = function(){
    //     console.log(arguments);
    // } 

    // ... list =>  1,2,3,4,5   
    let fn = (...list)=>{  // Rest合并剩余参数
        console.log(list);
    } 
    fn(1,2,3,4,5);



</script>
</html>